{if $pages.pagetotal > 1}
	{php}
		$get_arr = request()->get();
		$parameters = '';
		if(count($get_arr) > 0){
			foreach($get_arr as $k => $v){
				if($k != 'page'){
					$parameters .= '&'.$k.'='.$v;
				}
			}
		}
	{/php}
	<div class="am-cf" style="margin-right: 20px;">
		<div class="am-fr">
			<ul class="am-pagination tpl-pagination">
				<li><a href="#">共{$pages.total}条数据</a></li>
				{if $pages.page > 1}
					<li><a href="?page=1{php}echo $parameters;{/php}">«</a></li>
				{/if}
				{for start="$pages.page-2" end="$pages.page+3"}
					{if $i > 0 && $i <= $pages.pagetotal}
						<li {if $pages.page == $i}class="am-active"{/if} >
							<a href="?page={$i}{php}echo $parameters;{/php}">{$i}</a>
						</li>
					{/if}
				{/for}
				{if $pages.page < $pages.pagetotal}
					<li><a href="?page={$pages.pagetotal}{php}echo $parameters;{/php}">»</a></li>
				{/if}
			</ul>
		</div>
	</div>
{/if}
